//
//  comm.h
//  YuanyangJinlou
//
//  Created by mac004 on 2016/12/26.
//  Copyright © 2016年 suli19910309@qq.com. All rights reserved.
//

#ifndef comm_h
#define comm_h


#endif /* comm_h */
#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height

#define HSGBW3 @"HiraginoSansGB-W3"
#define HLT    @"HeLvetica"
#define PER_WIDTH  (SCREEN_WIDTH/375.0)
#define PER_HEIGHT (SCREEN_HEIGHT/667.0)

#define PERCEN  (ISIPAD ? .5: (ISPortrait?SCREEN_WIDTH/750.0:SCREEN_HEIGHT/750.0))
#define WIDTH_5S (SCREEN_WIDTH == 320||SCREEN_HEIGHT == 320)
#define ISIPAD ([[[UIDevice currentDevice]model] isEqualToString:@"iPad"])
#define PERCEN_HEIGHT  (SCREEN_HEIGHT/1334.0)
#define ISPortrait (SCREEN_WIDTH < SCREEN_HEIGHT) //竖屏

#define NAV_HEIGHT (IOS7 ? 64 : 44)
#define IOS7    ([[UIDevice currentDevice].systemVersion floatValue] >= 7.0)
#define IOS(a)   ([[UIDevice currentDevice].systemVersion floatValue] >= a)
#define IS_TEXT  (@"mobaotu")

#define UIColorFromHex(s)  [UIColor colorWithRed:(((s & 0xFF0000) >> 16))/255.0 green:(((s &0xFF00) >>8))/255.0 blue:((s &0xFF))/255.0 alpha:1.0]
// 获得RGB颜色
#define RGBColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
#define RGBCOLOR(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
#define CaseDoctorNameTextColor RGBColor(51,51,51)//     所有底色颜色均为：#efeff4      RGB:239 239 244
#define CZKeyWindow [UIApplication sharedApplication].keyWindow

#define WHITE_COLOR UIColorFromHex(0xffffff)
#define TINK_COLOR UIColorFromHex(0xbc0c16)
//黑色
#define BLACK_COLOR UIColorFromHex(0x333333)
//淡色
#define FEELT_COLOR UIColorFromHex(0x999999)
//红色主色
//#define TINK_COLOR (TINK_BG_COLOR)
#define TINK_BG_COLOR UIColorFromHex(0x4bd1d1)
#define TRACK_COLOR UIColorFromHex(0xcccccc)


#define FIRST_GUIDE_SHOW ([[NSUserDefaults standardUserDefaults]objectForKey:@"FIRST_GUIDE_SHOW"])